#ifndef BACKENDTEST_H
#define BACKENDTEST_H
#define TESTING 1

#if defined(TESTING)
#include <QObject>
#include <QtNetwork>
#include <phonon>
#include <QLabel>
#include "filereader.h"

class BackendTest : public QObject
{
Q_OBJECT
public:
    BackendTest(QHostAddress address, int port);
    void start();
public slots:
    void nextStep(QByteArray *);
    void playVideo(QByteArray * video);
    void showImage(QByteArray * image);
    void writeHead(QHttpResponseHeader);
    void test();
private:
    FileReader * fileReader;
    QTcpSocket * socket;
    Phonon::VideoPlayer * player;
    QWidget * widget;
    QLabel * label;
    QHttp * in;
    QBuffer * buffer;
};


#endif
#endif // BACKENDTEST_H
